import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import px2rem from 'postcss-plugin-px2rem';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    open: true,
  },
  css: {
    postcss: {
      plugins: [px2rem({
        rootValue: 75,
        // unitPrecision: 75,
        remUnit: 75
      })],
    },
  },
});
